package demo3;

public class Derived extends Base{
    public int a = 1111;
    public int c = 3;


    public void funcDerived() {
        System.out.println("Derived::funcDerived()");
    }

    public void funcBase() {
        System.out.println("Derived::func()");
    }

    public void funcBase(int a) {
        System.out.println("Derived::func() "+a);
    }

    public void method() {
        funcDerived();
        funcBase();
        funcBase(10);
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }




    public void test() {
        System.out.println("1: "+super.a);
        System.out.println("2: "+this.a);
        System.out.println(b);
        System.out.println(c);
    }

    public static void main1(String[] args) {
        Derived derived = new Derived();
        derived.test();
    }

}
